package gybase04

/**
 ********************************************************
 * Author: chinadragon
 * Time: 2021/12/26 下午5:28
 * Name:
 * Overview:
 * Usage:
 ********************************************************
 */
class GYTest {
    public static void main(String[] args) {
//        def start = System.nanoTime();
//        for (int i = 0; i < 1000_0000;i++){
//
//        }
//        def end = System.nanoTime();
//        println("groovy :"+(end -start)/(1000_0000*1000));
//        //groovy :0.0032201591

        def start = System.nanoTime();
        for (i in 0 .. 10000000){

        }
        def end = System.nanoTime();
        println("groovy :"+(end -start)/(1000_0000*1000));
        //groovy :0.0211978769 这个明显更耗时
    }
}
